package com.sh.common;

/**
 * 自定义 异常
 * 每个模块 都是 缩写开头
 * 缩写后 第一位 0 表示 失败数据 1表示成功数据
 *
 * */
public enum ResponseInfoEnum {

	//系统错误 0开头

	//成功
	SYSTEM_SUCCESS("1000000","操作成功"),
	//失败
	SYSTEM_FAILED("0000000","操作失败"),


	SYSTEM_NOTFULL("0000001","数据不全!!"),


	//用户信息
	USER_LOGIN_SUCCESS("YH1000000","登录成功"),

	USER_NOT_EXIST("YH1000001","用户不存在"),
	USER_PWD_ERROR("YH1000002","密码错误"),


	//系统数据 XT开头
	SYSTEM_PARAM_SUCCESS("XT100000","系统数据查询成功!!"),

	//客户KH开头
	CUSTOMER_UPLOAD_SUCCESS("KH100000","客户上传成功!!"),
	CUSTOMER_UPLOAD_FAILED("KH100001","客户上传失败!!"),


	CUSTOMER_QUERY_SUCCESS("KH000000","客户查询成功!!"),

	CUSTOMER_DELETE_SUCCESS("KH110000","客户删除成功!!"),
	CUSTOMER_DELETE_FAILED("KH110001","客户删除失败!!"),

	CUSTOMER_SAVE_SUCCESS("KH120000","客户保存成功!!"),
	CUSTOMER_SAVE_FAILED("KH120001","客户保存失败!!"),




	//油费YF....
	OIL_QUERY_SUCCESS("YF000000","查询成功!!"),

	OIL_UPLOAD_SUCCESS("YF100000","油费上传成功!!"),

	OIL_UPLOAD_FAILED("YF100001","油费上传失败!!"),

	OIL_DELETE_SUCCESS("YF110000","油费删除成功!!"),
	OIL_DELETE_FAILED("YF110001","油费删除失败!!"),

	OIL_SAVE_SUCCESS("YF120000","油费保存成功!!"),
	OIL_SAVE_FAILED("YF120001","油费保存失败!!"),



	//手动输入SR.....
	HANDINPUT_QUERY_SUCCESS("SR000000","查询成功!!"),
	HANDINPUT_UPLOAD_SUCCESS("SR100000","手动输入上传成功!!"),

	HANDINPUT_UPLOAD_FAILED("SR100001","手动输入上传失败!!"),

	HANDINPUT_DELETE_SUCCESS("SR110000","手动输入删除成功!!"),
	HANDINPUT_DELETE_FAILED("SR110001","手动输入删除失败!!"),

	HANDINPUT_SAVE_SUCCESS("SR120000","手动输入保存成功!!"),
	HANDINPUT_SAVE_FAILED("SR120001","手动输入保存失败!!"),




	//修理费XL.....
	REPAIR_QUERY_SUCCESS("XL000000","查询成功!!"),
	REPAIR_UPLOAD_SUCCESS("XL100000","修理费上传成功!!"),

	REPAIR_UPLOAD_FAILED("XL100001","修理费上传失败!!"),
	//
	REPAIR_DELETE_SUCCESS("XL110000","修理费删除成功!!"),
	REPAIR_DELETE_FAILED("XL110001","修理费删除失败!!"),

	REPAIR_SAVE_SUCCESS("XL120000","修理费保存成功!!"),
	REPAIR_SAVE_FAILED("XL120001","修理费保存失败!!"),

	//石头SZ.....
	STONE_UPLOAD_SUCCESS("SZ100000","石子上传成功!!"),
	STONE_UPLOAD_FAILED("SZ000001","石子上传失败!!请查看 文件格式与数据是否正确!!"),

	//轮胎LT.....
	TIRES_QUERY_SUCCESS("LT000000","查询成功!!"),
	TIRES_UPLOAD_SUCCESS("LT100000","轮胎上传成功!!"),

	TIRES_UPLOAD_FAILED("LT100001","轮胎上传失败!!"),


	TIRES_DELETE_SUCCESS("LT110000","轮胎费删除成功!!"),
	TIRES_DELETE_FAILED("LT110001","轮胎费删除失败!!"),

	TIRES_SAVE_SUCCESS("LT120000","轮胎费保存成功!!"),
	TIRES_SAVE_FAILED("LT120001","轮胎费保存失败!!"),




	//运输费YS.....
	TRANSPORT_QUERY_SUCCESS("YS000000","查询成功!!"),
	TRANSPORT_UPLOAD_SUCCESS("YS100000","运输费上传成功!!"),
	TRANSPORT_UPLOAD_FAILED("YS100001","运输费上传失败!!请查看 文件格式与数据是否正确!!"),

	TRANSPORT_DELETE_SUCCESS("YS110000","运输费删除成功!!"),
	TRANSPORT_DELETE_FAILED("YS110001","运输费删除失败!!"),

	TRANSPORT_SAVE_SUCCESS("YS120000","运输费保存成功!!"),
	TRANSPORT_SAVE_FAILED("YS120001","运输费保存失败!!"),



	//应收报表
	RECEIVE_RPT_QUERY_SUCCESS("YSBB000000","应收报表查询成功!!"),

	RECEIVE_RPT_QUERY_FAILED("YSBB000001","应收报表查询失败!!"),


	//应付报表
	PAY_RPT_QUERY_SUCCESS("YFBB000000","应付报表查询成功!!"),

	PAY_RPT_QUERY_FAILED("YFBB000001","应付报表查询失败!!"),

	//月度余额报表
	MONTHLYBALANCE_RPT_QUERY_SUCCESS("YDYEBB000000","应付报表查询成功!!"),

	MONTHLYBALANCEY_RPT_QUERY_FAILED("YDYEBB000001","应付报表查询失败!!"),

	MONTHLYBALANCEY_RPT_CALCULATE_FAILED("YDYEBB000002","应付报表 计算失败!!");

	public String code;
	public String message;


	ResponseInfoEnum(String ecode, String emsg) {
		this.code = ecode;
		this.message = emsg;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}
	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}
	/**
	 * @param message the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}




}
